/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.landmark;

import java.util.Hashtable;

/**
 *
 * @author Landmark IT
 */
public final class OptionConstants {
    private static Hashtable<String, String> optionsHt = new Hashtable<String, String>();
    public OptionConstants() {
        optionsHt.put("XS","Extra Small");
        optionsHt.put("XXS","Double Extra Small");        
       
        optionsHt.put("S","Small");
        optionsHt.put("M","Medium");
        optionsHt.put("L","Large");
        
        optionsHt.put("XL","Extra Large");
//        optionsHt.put("2XL","Extra Large - 2XL");
//        optionsHt.put("3XL","Extra Large - 3XL");
//        optionsHt.put("4XL","Extra Large - 4XL");
//        optionsHt.put("5XL","Extra Large - 5XL");

        optionsHt.put("T","Tall");
//        optionsHt.put("2T","Tall - 2T");
//        optionsHt.put("3T","Tall - 3T");
//        optionsHt.put("4T","Tall - 4T");
//        optionsHt.put("5T","Tall - 5T");
//        optionsHt.put("6T","Tall - 6T");
//        optionsHt.put("7T","Tall - 7T");

        optionsHt.put("3M","0-3 Months");
        optionsHt.put("6M","3-6 Months");
        optionsHt.put("9M","6-3 Months");
        optionsHt.put("12M","9-12 Months");
        optionsHt.put("18M","12-18 Months");
        optionsHt.put("24M","18-24 Months");

        optionsHt.put("XST","Extra Small - Tall");
        
        optionsHt.put("XLT","Extra Large - Tall");
//        optionsHt.put("2XLT","Extra Large - Tall - 2T");
//        optionsHt.put("3XLT","Extra Large - Tall - 3T");
        
        optionsHt.put("LS","Long Sleeve");
        optionsHt.put("SS","Small Sleeve");
        optionsHt.put("&dquote;"," in");
        optionsHt.put("AID_KIT","First Aid");
        optionsHt.put("AID_KITS","First Aid");
        optionsHt.put("ONE","One Size");
        
        for( int i=2;i<=40;i++) {
            optionsHt.put(i+"T", "Tall - "+i+"T");//These are UK sizes
        }
        for( int i=2;i<=40;i++) {
            optionsHt.put(i+"P", "Petite - "+i+"P");//These are UK sizes
        }
        for( int i=2;i<=10;i++) {
            optionsHt.put(i+"XL", "Extra Large - "+i+"XL");//These are UK sizes
        }
        
        for( int i=2;i<=5;i++) {
            optionsHt.put(i+"XLT", "Extra Large - Tall - "+i+"XL");//These are UK sizes
        } 
        // Manipulate for  UK and US sizes in options
        for( int i=30;i<=50;i++) {
            optionsHt.put(""+i, ""+i);//These are UK sizes
        }
        for( float i=4;i<=14;i+=.5) {
            String value = ""+i;
            if( value.contains(".0")) {
                value = value.substring(0,value.indexOf("."));
            }
            optionsHt.put(value, value);//These are US sizes
        }
    }
    
    public String getOptionsValue(String optionCode) {
//        System.out.println("optionCode : " +optionCode);
        String optionValue = optionsHt.get(optionCode);
//        System.out.println("optionValue : " +optionValue);

        return optionValue;
    }
}
